package com.xingxuecn.limit.service;

import com.xingxuecn.limit.common.model.dto.User;
import com.xingxuecn.limit.common.model.vo.Page;
import com.xingxuecn.limit.common.model.vo.ResultModel;

import java.sql.SQLException;

/**
 * @author Kris at 2018/9/13 10:38
 */
public interface UserService {
    Page<User> searchPage(User user, Integer page, Integer rows) throws SQLException;

    int add(User user) throws SQLException;

    int update(User user) throws SQLException;

    int delete(Integer id) throws SQLException;

    ResultModel doLogin(String account, String pwd);
}
